<?php

namespace App\Http\Requests\Api;

use App\Http\Requests\Request;

class LoginRequest extends Request
{

    public function rules()
    {
        return [
            'mobile' => [
                'required',
                'regex:/^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/',
            ],
            'code' => 'required'
        ];
    }
}
